package com.taokatao.cardmee.business.carddetail;

import android.os.Bundle;
import android.widget.TextView;

import com.taokatao.cardmee.BaseActivity;
import com.taokatao.cardmee.R;
import com.taokatao.cardmee.api.model.CardFDSignInfo;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * 商家分店对应的界面
 */
public class CardFDSignCompleteActivity extends BaseActivity {
    @BindView(R.id.t_result) TextView tResult;
    @BindView(R.id.t_course_name) TextView tCourseName;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_card_fd_sign_complete);
        ButterKnife.bind(this);

        CardFDSignInfo data = (CardFDSignInfo) getIntent().getSerializableExtra("extra_course_sign_info");

        tCourseName.setText(data.courseName);
        tResult.setText("已扣除" + data.coursePerimeter + "次，剩余" + data.courseNum + "次");
    }
}
